package com.andox.fn.inf.rpc.rest.config;

import java.io.Serializable;


import com.google.common.base.Preconditions;

/**   
 * @ClassName:   ServiceConfig   
 * @Description: TODO  
 * @author:      Andox
 * @date:        2019年7月31日 下午6:06:58   
 *     
 */
public class ServiceConfig extends InterfaceConfig implements Serializable{
	private static final long serialVersionUID = 1415588274116216011L;

	private Object ref;
	
	public Object getRef() {
		return ref;
	}
	public void setRef(Object ref) {
		this.ref = ref;
	}
	
	@Override
	public void checkSelf() {
		super.checkSelf();
		
		Preconditions.checkArgument(this.getRef() != null, "ref is null");
	}
}
